/*
 * Created on 2005-7-11
 *
 */
package com.et114.components.ldap4oj.support;


import javax.naming.NamingException;

import org.springframework.dao.DataAccessException;
import org.springframework.dao.DataIntegrityViolationException;

public class CanonicalLdapExceptionTranslater implements
        LdapExceptionTranslater {
    

    /*
     * (non-Javadoc)
     * 
     * @see org.springframework.ldap.support.LdapExceptionTranslater#translate(java.lang.String,
     *      javax.naming.NamingException)
     */
    public DataAccessException translate(String task, NamingException namingex) {
        return new DataIntegrityViolationException(task, namingex);
    }


}
